# cut
s = "hello"
chars = s.split("l")
print(f'{s.split("l") = }, {s.partition("l") = }')

# search
print(f'{s.find("l") = }, {s.index("ll") = }')
print(f'{s.index("l") = }')

# link
c = "ex" "cali" + "bur"
c += "!" * 3
print(f"{c = }")
d = "#".join(chars)
print(f"{d = }")

# static
print(f'{len(s) = }, {s.count("l") = }')
print(f"{max(s) = }, {min(s) = }")

# modify
s = input("enter a string: ")
print(f"{s.title() = }, {s.capitalize() = }, {s.casefold() = }, {s.swapcase() = }")
print(f"{s.lower() = }, {s.upper() = }")
c = input("enter another string:")
print(f"{s.strip(c) = }, {s.replace(c,'') = }")
print(f"{s.startswith(c) = }, {s.lstrip(c) = }, {s.removeprefix(c) = }")
print(f"{s.endswith(c) = }, {s.rstrip(c) = }, {s.removesuffix(c) = }")
l = int(input("enter an integer: "))
print(f"{s.ljust(l,c) = }, {s.rjust(l,c) = }, {s.center(l,c) = }")

# convert
table = str.maketrans({"a": 1})
print(f"{s.translate(table) = }")
